using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace GameFramework.Extensions
{
    /// <summary>
    /// Texture2D extension methods.
    /// </summary>
    public static class Texture2DExtensions
    {
        /// <summary>
        /// Gets the size of the texture (width and height).
        /// </summary>
        /// <param name="texture">The texture.</param>
        /// <returns>The size of the texture.</returns>
        public static Vector2 GetSize(this Texture2D texture)
        {
            return new Vector2(texture.Width, texture.Height);
        }
    }
}
